package cn.b.sky.mes.qm.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import cn.b.sky.common.model.ImeCommon;

/**
 * 
 * <strong>Title : InspectRecord.java<br></strong>
 * <strong>Package : cn.b.sky.mes.qm.model<br></strong>
 * <strong>Description : </strong>过程检验记录<br> 
 * <strong>Create on : 2015-12-18 上午11:22:42<br></strong>
 * <p>
 * @author lidapeng<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人 | 修改日期 | 修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
public class InspectRecord extends ImeCommon implements Serializable {
  /** 
  * @Fields serialVersionUID : 
  * @creator     :lidapeng
  */
  private static final long serialVersionUID = 4019799701438511964L;

  /**
   * 主键Id
   */
  private Long id;
  
  private String productionControlNum;//生产管理号

  /**
   * 缺陷编号
   */
  private String defectCode;

  /**
   * 缺陷描述
   */
  private String defectText;

  /**
   * 生产订单编号
   */
  private String productionOrderNum;

  /**
   * 新增订单类型字段
   */
  private String orderTypeCode;
  
  private String orderTypeCodeText;//订单类型描述

  /**
   * 订单类型描述
   */
  private String orderTypeText;

  /**
   * 物料编号
   * 页面展示使用
   */
  private String materialCode;

  /**
   * 物料描述
   * 页面展示使用
   */
  private String materialText;

  /**
   * 生产批号
   * 页面展示使用
   */
  private String productionlotNum;

  /**
   * 工艺工序ID
   */
  private Long processOperationId;

  /**
   * 工作中心编号
   */
  private String workcenterCode;

  /**
   * 工作中心描述
   * 页面展示使用
   */
  private String workcenterText;

  /**
   * 作业单元编号
   */
  private String workunitCode;

  /**
   * 作业单元描述
   * 页面展示使用
   */
  private String workunitText;

  /**
   * 附件计数
   */
  private Integer attachmentCount;

  /**
   * 图片附件编号（存储名）
   */
  private String attachmentCode;

  /**
   * X坐标
   */
  private Float x;

  /**
   * Y坐标
   */
  private Float y;

  /**
   * 宽度
   */
  private Float width;

  /**
   * 高度
   */
  private Float height;

  /**
   * 颜色
   */
  private String color;

  /**
   * 数量
   */
  private Float quantity;

  private String statusECode;

  private int pictureFlag;

  /**
   * 工序编号:nvarchar2(20) <Primary Key>
   */
  private String operationCode;

  /**
   * 工序描述
   */
  private String operationText;

  /**
   * 关联的缺陷
   */
  private Defect defect;

  /**
   * 附件
   */
  List<InspectRecordAttachment> attachments = new ArrayList<InspectRecordAttachment>();
  
  /**
   * 客户
   */
  private String customer;

  /**
   * 客户订单
   */
  private String customerOrder;

  /**
   * 优先级
   */
  private Integer priority;


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getDefectCode() {
    return defectCode;
  }

  public void setDefectCode(String defectCode) {
    this.defectCode = defectCode;
  }

  public String getDefectText() {
    return defectText;
  }

  public void setDefectText(String defectText) {
    this.defectText = defectText;
  }

  public String getProductionOrderNum() {
    return productionOrderNum;
  }

  public void setProductionOrderNum(String productionOrderNum) {
    this.productionOrderNum = productionOrderNum;
  }

  public String getOrderTypeText() {
    return orderTypeText;
  }

  public void setOrderTypeText(String orderTypeText) {
    this.orderTypeText = orderTypeText;
  }

  public String getOrderTypeCode() {
    return orderTypeCode;
  }

  public void setOrderTypeCode(String orderTypeCode) {
    this.orderTypeCode = orderTypeCode;
  }

  public Long getProcessOperationId() {
    return processOperationId;
  }

  public void setProcessOperationId(Long processOperationId) {
    this.processOperationId = processOperationId;
  }

  public String getWorkcenterCode() {
    return workcenterCode;
  }

  public void setWorkcenterCode(String workcenterCode) {
    this.workcenterCode = workcenterCode;
  }

  public String getWorkunitCode() {
    return workunitCode;
  }

  public void setWorkunitCode(String workunitCode) {
    this.workunitCode = workunitCode;
  }

  public Integer getAttachmentCount() {
    return attachmentCount;
  }

  public void setAttachmentCount(Integer attachmentCount) {
    this.attachmentCount = attachmentCount;
  }

  public String getAttachmentCode() {
    return attachmentCode;
  }

  public void setAttachmentCode(String attachmentCode) {
    this.attachmentCode = attachmentCode;
  }

  public Float getX() {
    return x;
  }

  public void setX(Float x) {
    this.x = x;
  }

  public Float getY() {
    return y;
  }

  public void setY(Float y) {
    this.y = y;
  }

  public Float getWidth() {
    return width;
  }

  public void setWidth(Float width) {
    this.width = width;
  }

  public Float getHeight() {
    return height;
  }

  public void setHeight(Float height) {
    this.height = height;
  }

  public String getColor() {
    return color;
  }

  public void setColor(String color) {
    this.color = color;
  }

  public Float getQuantity() {
    return quantity;
  }

  public void setQuantity(Float quantity) {
    this.quantity = quantity;
  }

  public List<InspectRecordAttachment> getAttachments() {
    return attachments;
  }

  public void setAttachments(List<InspectRecordAttachment> attachments) {
    this.attachments = attachments;
  }

  public String getMaterialCode() {
    return materialCode;
  }

  public void setMaterialCode(String materialCode) {
    this.materialCode = materialCode;
  }

  public String getMaterialText() {
    return materialText;
  }

  public void setMaterialText(String materialText) {
    this.materialText = materialText;
  }

  public String getProductionlotNum() {
    return productionlotNum;
  }

  public void setProductionlotNum(String productionlotNum) {
    this.productionlotNum = productionlotNum;
  }

  public String getWorkcenterText() {
    return workcenterText;
  }

  public void setWorkcenterText(String workcenterText) {
    this.workcenterText = workcenterText;
  }

  public String getWorkunitText() {
    return workunitText;
  }

  public void setWorkunitText(String workunitText) {
    this.workunitText = workunitText;
  }

  public String getStatusECode() {
    return statusECode;
  }

  public void setStatusECode(String statusECode) {
    this.statusECode = statusECode;
  }

  public int getPictureFlag() {
    return pictureFlag;
  }

  public void setPictureFlag(int pictureFlag) {
    this.pictureFlag = pictureFlag;
  }

  public String getOperationCode() {
    return operationCode;
  }

  public void setOperationCode(String operationCode) {
    this.operationCode = operationCode;
  }

  public String getOperationText() {
    return operationText;
  }

  public void setOperationText(String operationText) {
    this.operationText = operationText;
  }

  public Defect getDefect() {
    return defect;
  }

  public void setDefect(Defect defect) {
    this.defect = defect;
  }

  public String getProductionControlNum() {
    return productionControlNum;
  }

  public void setProductionControlNum(String productionControlNum) {
    this.productionControlNum = productionControlNum;
  }

  public String getCustomer() {
    return customer;
  }

  public void setCustomer(String customer) {
    this.customer = customer;
  }

  public String getCustomerOrder() {
    return customerOrder;
  }

  public void setCustomerOrder(String customerOrder) {
    this.customerOrder = customerOrder;
  }

  public Integer getPriority() {
    return priority;
  }

  public void setPriority(Integer priority) {
    this.priority = priority;
  }

  public String getOrderTypeCodeText() {
    return orderTypeCodeText;
  }

  public void setOrderTypeCodeText(String orderTypeCodeText) {
    this.orderTypeCodeText = orderTypeCodeText;
  }
  
  
}
